/**
 * @author ：wang-ting
 * @Date：2025/3/23 14:36
 */
import java.util.Scanner;
public class 回文数 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int num = input.nextInt();
        int originalNum = num;
        int reverseNum = 0;
        while (num != 0) {
            int digit = num % 10;
            reverseNum = reverseNum * 10 + digit;
            num /= 10;
        }
        if (reverseNum == originalNum) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}

